package com.shan.design.combination.practice;

/**
 * 视图控件测试
 * @author shanzheng
 * @date 2018-12-02 19:20
 **/
public class ViewTest {
    public static void main(String[] args) {
        AbstractView button1,text1,button2,text2;
        WindowView windowView1,windowView2,windowView3;
        windowView1 = new WindowView("窗体");
        windowView2 = new WindowView("子窗体1");
        windowView3 = new WindowView("子窗体2");

        button1 = new ButtonView("按钮1");
        text1 = new TextView("文本1");
        button2 = new ButtonView("按钮2");
        text2 = new TextView("文本2");
        windowView2.add(button1);
        windowView2.add(text1);
        windowView3.add(button2);
        windowView3.add(text2);
        windowView1.add(windowView2);
        windowView1.add(windowView3);
        windowView1.buildView();
    }
}
